package cn.com.wxd.service.zookeeper;

import java.io.Serializable;

/**
 * Title:
 * Description:
 * <p>
 * Company: Amumu系统
 * Copyright: Copyright (c) 2017
 * All right reserved.
 * Created by WangXuDong on 2017/8/22.
 *
 * @author WangXuDong
 * @version 1.0
 */
public class ZkData implements Serializable {
    private static final long serialVersionUID = 4323432342134432321L;

    private String ip;
    private Integer port;
    private String version;
    private String data;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getData() {
        if (data == null) {
            return "";
        }
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return ip + ":" + port + ";version:" + version + "data:" + data;
    }
}
